package com.wyh.domain.vo.gfive;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class InvoicerecordsSelectNoVo {

    /**
     * 通知单编号
     */
    @ApiModelProperty(name = "noticenumber", value = "通知单编号", required = false)
    private String noticenumber;

    /**
     * 发票类型
     */
//    private Integer invoicingtype;
    @ApiModelProperty(name = "invoicingtype", value = "发票类型", required = false)
    private String invoicingtype;

    /**
     * 业主
     */
//    private Integer owner;
    @ApiModelProperty(name = "owner", value = "业主", required = false)
    private String owner;

    /**
     * 购买方
     */
//    private Integer buyer;
    @ApiModelProperty(name = "buyer", value = "购买方", required = false)
    private String buyer;

    /**
     * 用于查询已开票 金额
     */
    @ApiModelProperty("左边 开票 金额")
    private Double leftnvoicingIsNear;

    /**
     *  用于查询开票金额有右边的数据
     * @return
     */
    @ApiModelProperty("开票 金额")
    private Double rightInvoicingIsNear;

    @JsonIgnore
    public boolean isEmptyT() {
        return (noticenumber == null || noticenumber.isEmpty()) &&
                (invoicingtype == null || invoicingtype.isEmpty()) &&
                (owner == null || owner.isEmpty()) &&
                (buyer == null || buyer.isEmpty());
    }

}
